<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <epl-userMessage idCount="2" dataType="company" :panel="panel">
                <epl-insurance  :panel="panel"></epl-insurance>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入单位险种增加变动信息</ep-title>
                <el-form :model="form" :rules="rules" ref="form">
                    <el-row :gutter="20">
	                        <ep-select colspan="8" label="变动原因" name="aae160" :property="form.aae160" placeholder="请选择变动原因"
	                                p="R" :datas="{formData: form}" codetype="AAE160"  
	                                SelectFilterData=" (aaa105='03')" ></ep-select>
	                        <ep-date colspan="8" label="变动日期" name="aae035" :property="form.aae035" placeholder="请选择" 
	                       		 rules="this.$localRules.DateCheck"
	                                p="R" :datas="{formData: form }" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" ></ep-date>
                    </el-row>
                     <el-row :gutter="20">
                        <ep-textarea :rows="2"   label="备注" name="aae013" :property="form.aae013"  placeholder="请输入备注"
                                p="E" :datas="{formData: form}"></ep-textarea>
                                 </el-row> 
                </el-form>
                <ep-table :data="tableData" :pager="20" rowDbClick  >  
                    <ep-table-column editor="index" width="50" header="序号" ></ep-table-column>                            
                    <ep-table-column editor="checkbox" header="选择" width="55"></ep-table-column>  
                    <ep-table-column sortable editor="select"  codetype="AAE140" name="aae140" header="险种类型"></ep-table-column>
                    <ep-table-column sortable editor="select" edited  codetype="AAZ289" name="aaz289" header="征缴费率"></ep-table-column>
                    <ep-table-column header="操作" width="100" editor="button">
                        <template slot-scope="scope">
                            <el-button type="text" size="mini" @click="deleteCurrentRow(scope.row)">删除</el-button>
                        </template>
                    </ep-table-column>
                    
                </ep-table>
                <!-- <ep-button size="medium" type="text" name="+增加" id="doAdd" :datas="{tableData: tableData,baa115: form.baa115}"></ep-button> -->
                <el-row type="flex" justify="center">
                    <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']" 
                                :datas="{formData: form,tableData:tableData,panel:panel}" name="保存"></ep-saveButton>
                </el-row>
            </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/CpInsureIncreaseJS.js"></script>
